@echo off
echo 启动后台管理系统...
echo.

echo 1. 启动后端服务...
cd backend\src\Eno.Api
start "Backend API" cmd /k "dotnet run"
cd ..\..\..

echo 2. 等待后端服务启动...
timeout /t 5 /nobreak > nul

echo 3. 启动前端服务...
cd frontend\magager-eno
start "Frontend Dev Server" cmd /k "pnpm dev"
cd ..\..

echo.
echo 服务启动完成！
echo 后端服务: http://localhost:5284
echo 前端服务: http://localhost:5173
echo.
echo 按任意键退出...
pause > nul 